package com.breaktian.demoapp.ui;

import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.widget.TextView;

import com.breaktian.demoapp.BuildConfig;
import com.breaktian.demoapp.R;
import com.breaktian.demoapp.provider.HomeProvider;
import com.breaktian.demoapp.toobar.ToolBarBuilder;
import com.breaktian.demoapp.ui.base.BaseActivity;

public class TestFlavorsActivity extends BaseActivity<HomeProvider> {

    private Toolbar toolbar;
    private TextView textView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test_flavors);
        initView();


    }

    @Override
    protected HomeProvider getProvider() {
        return null;
    }

    private void initView() {
        toolbar = (Toolbar)findViewById(R.id.toolBar);
        new ToolBarBuilder().setToolbar(toolbar).setTitle("测试Flavors").hideBackIcon(false)
                .build(this);
        textView = (TextView)findViewById(R.id.textView);
        textView.setText(BuildConfig.HOST_URL_API);
    }

}
